package com.zhen.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhen.po.User;
import com.zhen.service.UserService;

@Controller
@RequestMapping("/user/")
public class UserController {
	@Resource(name="userServiceImpl")
	private UserService userService;
	@RequestMapping("login.do")
	public String login(User uobj,Model model)
	{
		System.out.println(userService.addUser(uobj));
		System.out.println(uobj);
	//	userService.addUser(uobj);
		model.addAttribute("name",uobj);
		return "get";
	}
}
